<?php
/***********************************************************************
 * @package    	IvanEngine
 * @subpackage 	Core
 * @author     	Ivan <ivanzx@msn.com>
 * @created    	2010-05-15
 ***********************************************************************/
if(defined("IVANENGINE_CORE_EVENT_CALLBACK"))
	die("Redefinition macro in :".__FILE__."(".__LINE__.")");
define("IVANENGINE_CORE_EVENT_CALLBACK", true);

require_once (dirname(__FILE__).'/../Base.php');

class CEventCallBack extends CBase
{
	protected $m_method		= "";
	protected $m_object		= null;
	public function __construct($method, CObject $object = null) 
	{
		parent::__construct ();
		$this->m_method		= $method;
		$this->m_object		= $object;
	}
	
	public function __destruct() 
	{
		unset($this->m_object);
		parent::__destruct ();
	}
	
	public function GetObject()
	{
		return $this->m_object;
	}
	
	public function GetMethod()
	{
		return $this->m_method;
	}
}

?>